package com.zxx.mapper.role;


import com.zxx.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    //获取角色列表
    public List<Role> getRoleList()throws Exception;
    //增加角色信息
    public int add(Role role)throws Exception;
    //通过ID删除role
    public int deleteRoleById(@Param("id") Integer delId)throws Exception;
    //修改角色信息
    public int modify(Role role)throws Exception;
    //通过Id获取role
    public Role getRoleById(@Param("id") Integer id)throws Exception;
    //根据RoleCode，进行角色编码得唯一性验证
    public int roleCodeIsExist(@Param("roleCode") String roleCode)throws Exception;
}